<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"
	href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>周期确认新增</title>
</head>
<body>
	<script type="text/javascript">
		$(function() {
		
			//返回
			$('.returnteams').linkbutton({
				onClick : function() {
					$("#teamshets").panel({
						href : "to_core_scheduling"
					});
				}
			});
			//
			$(".submit_team_adds").linkbutton({onClick:function(){
				$("<form method='post'>").appendTo(document.body).form({
					url: 'shq_teampla_adds',
					onSubmit: function(params){
						params["scheduName"] = $("#schedunamehh").textbox("getText");
						params["cycle"] = $("#statescheone").combobox("getValue");
						params["scheduTeam"] = $("#stateschetwe").combobox("getValue");
						params["scheduCurrentcycle"] = $("#stateschethree").combobox("getValue");
						params["scheduCurrentteam"] = $("#stateschefour").combobox("getValue");
						params["scheduRemarks"] = $("#stateschefive").combobox("getValue");
						params["scheduPerson"] = $("#stateschesix").combobox("getValue");
						params["scheduState"] = $("#statescheseve").combobox("getValue");
						params["scheduEnabledate"] = $("#statesonesx").datetimebox("getText");
						/* params["teamTakeeffect"] = $("#statesone").datetimebox("getText"); */
						alert($("#statesonesx").datetimebox("getText"));
						
					},
					success:function(v){
						v = eval("(" + v + ")");
						if(v.success){
							$("#teamshets").panel({
								href : "to_core_scheduling"
							});
						}else{
							$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
						}
					}
				}).submit();
			}});
			
		});
	</script>

	<div id="teamshets" class="easyui-panel"
		data-options="fit:true,border:false">
		<div style="margin: 15px">
			<div id="insert_bt" class="insert_bt" style="margin: 10px">
				<a href="#" class="easyui-linkbutton returnteams" iconCls="icon-reload"
					plain="true" title="返回" data-options="text:'返回'"></a> <a
					class="easyui-linkbutton submit_team_adds"
					data-options="text:'添加',iconCls:'icon-add',plain:true"></a> <span
					style="float: right; font-size: 12px; margin-top: 5px;margin-right: 10px;">新增：班组</span>
			</div>

			<div style="font-size: 14px;">概要</div>
			<div
				style="border-top: 2px solid #19aa8d; width: 400px; height: 150px; display: inline-block;">
				<table cellspacing="10">
					<tbody>
						<tr>
							<td><input class="easyui-textbox" id="schedunamehh"
								data-options="label:'*班名称', width:300,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input id="statesonesx" class="easyui-datetimebox"
								data-options="label:'*生效时日', width:300,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input id="endtwesx" class="easyui-datetimebox"
								data-options="label:'*失效时日', width:300,labelWidth:130" /></td>
						</tr>
					</tbody>
				</table>
			</div>
			
			<div style="font-size: 14px;">排版周期</div>
			<div
				style="border-top: 2px solid #19aa8d; width: 400px; height: 100px; display: inline-block;">
				<table cellspacing="10">
					<tbody>
						<thead>
							<tr>
								<td style="width:90px;text-align:center">周一</td>
								<td  style="width:90px;text-align:center">周二</td>
								<td  style="width:90px;text-align:center">周三</td>
								<td style="width:90px;text-align:center">周四</td>
								<td style="width:90px;text-align:center">周五</td>
								<td style="width:90px;text-align:center">周六</td>
								<td style="width:90px;text-align:center">周日</td>
							</tr>
							<tr>
							<td>
								<select id="statescheone" class="easyui-combobox"data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>
   					 				<option value="0">休息</option>   
								</select> 
							</td>
							<td>
								<select id="stateschetwe" class="easyui-combobox" data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>   
								</select> 
							</td>
							<td>
								<select id="stateschethree" class="easyui-combobox" data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>   
								</select> 
							</td>
							<td>
								<select id="stateschefour" class="easyui-combobox"data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>  
								</select> 
							</td>
							<td>
								<select id="stateschefive" class="easyui-combobox" data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>    
								</select> 
							</td>
							<td>
								<select id="stateschesix" class="easyui-combobox" data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>   
								</select> 
							</td>
							<td>
								<select id="statescheseve" class="easyui-combobox" data-options="panelHeight:'auto',width:'80%'">   
   					 				<option value="1">上班</option>   
   					 				<option value="0">休息</option>   
								</select> 
							</td>
							</tr>
						</thead>
					</tbody>
				</table>
			</div>
			</div>
			</div>
</body>
</html>